package com.bluefox.modules.common.service.upload;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 文件上传的统一接口
 * @author sunfeng
 */
public interface FileUpload {

    /**
     * 文件上传
     * @param multipartFile
     * @param extName 后缀名
     * @exception IOException 异常
     * @return
     */
    String upload(MultipartFile multipartFile, String extName) throws IOException;
}
